package dataFromXml;

import java.util.ArrayList;
import java.util.List;

import org.dom4j.Element;

public class ResultLimit {

	Element rNode;
	String tableName;
	List<Attribute> attrList;
	
	public ResultLimit(Element self) {
		rNode = self;
		tableName = null;
		attrList = new ArrayList<>();
	}
	
	public void setTableName(String tn) {
		tableName = tn;
	}
	
	public void addAttrNode(Attribute attr) {
		attrList.add(attr);
	}
	
	public String getTableName() {
		return tableName;
	}
	
	public List<Attribute> getAttrList() {
		return attrList;
	}
	
	public Element getElement() {
		return rNode;
	}
}
